package com.xypower;

//仿hashmap put方法中的node
public class Node {
    private Object context;
    private Node next;

    public Node(Object context, Node next) {
        this.context = context;
        this.next = next;
    }

    public static void main(String[] args) {
        //头结点
        Node header = new Node(new Object(), null);
        //连接新结点   尾插法
        //header.next = new Node(new Object(),null);
        //头插法
        header = new Node(new Object(),header);
    }
}
